/**
 * Copyright (c) 2016-2019 九点科技 All rights reserved.
 *
 * http://www.9dyun.cn
 *
 * 版权所有，侵权必究！
 */
package com.dian.modules.base.dao;

import com.dian.modules.base.entity.ClassEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * 分类表
 *
 * @author Jinag Run
 * @email 1685269193qq.com
 * @date 2019-05-22 23:47:42
 */
@Mapper
public interface ClassDao extends BaseMapper<ClassEntity> {

   @Select(" select count(*) from base_class where parent_id=#{id} ")
   int queryChildCount(Long id);

}
